<%@page import="support.*, java.util.*" %>
<%@page import="support.*, java.util.*" %>
<%@ page language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html>
	<head>
		<title>Country of Residence </title>
	</head>
<body>




Name: 
    <bean:write name="applicantFormInsert" property="firstname" scope="session" />
	<bean:write name="applicantFormInsert" property="middle"    scope="session" />
	<bean:write name="applicantFormInsert" property="lastname"  scope="session" />
<BR>


<BR>    
Country of Citizenship:
<bean:write name="applicantFormInsert" property="citizenship"  scope="session" />


<%  String citizenship = request.getParameter("citizenship");
	
%> <BR>

<%
Vector<String> countries = (Vector<String>) request.getAttribute("countries");
%>
        
Please choose your country of residence: <p>
<html:link action="/residence">
<html:param name="residence" value="<%=citizenship%>"/> Same with country of citizenship  
</html:link> 

<BR>
<BR>
<table border="0" cellpadding="0" cellspacing="0" width="760" align="center">
	<tr>
		<%int tmp=0; %>
		<%for(int i=0;i<countries.size();++i) 
		{
			tmp++;
		%> 
		<td>
			<html:link action="/residence">
			<html:param name="residence" value="<%=countries.get(i)%>"/>
			 	<%=countries.get(i)%> 
			
			</html:link>
			
		</td>
		<%if (tmp%3==0)
		{%>
	</tr>
	   <%} %>
	   <%} %>
</table>
</body>
</html>